const express = require('express')
const app = express()
//导入模块化路由
const router = require('./router')
// app.use()用来注册全局中间件
// app.use(router)
app.use('/api',router)
app.listen(8765, () => {
    console.log('express server running at localhost:8765');
})